package cn.iocoder.yudao.module.cmt.controller.admin.base.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 社区信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class BaseCommunityRespVO {

    @Schema(description = "社区ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10667")
    @ExcelProperty("社区ID")
    private Long id;

    @Schema(description = "社区编码")
    @ExcelProperty("社区编码")
    private String code;

    @Schema(description = "社区名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("社区名称")
    private String name;

    @Schema(description = "地区编号", example = "110101")
    private Integer areaId;

    @Schema(description = "省份")
    @ExcelProperty("省份")
    private String province;

    @Schema(description = "城市")
    @ExcelProperty("城市")
    private String city;

    @Schema(description = "区县")
    @ExcelProperty("区县")
    private String district;

    @Schema(description = "街道")
    @ExcelProperty("街道")
    private String street;

    @Schema(description = "详细地址")
    @ExcelProperty("详细地址")
    private String address;

    @Schema(description = "联系人")
    @ExcelProperty("联系人")
    private String contactPerson;

    @Schema(description = "联系电话")
    @ExcelProperty("联系电话")
    private String contactPhone;

    @Schema(description = "社区logo")
    @ExcelProperty("社区logo")
    private String logo;

    @Schema(description = "社区简介")
    @ExcelProperty("社区简介")
    private String introduction;

    @Schema(description = "排序")
    @ExcelProperty("排序")
    private Integer sort;

    @Schema(description = "状态：0停用 1启用", example = "2")
    @ExcelProperty(value = "状态：0停用 1启用", converter = DictConvert.class)
    @DictFormat("enabel_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "备注", example = "你猜")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}